package com.doeis.minaserver.packet;

public class InfoPacket extends Packet {
	
    public static final byte CMD_SHUTDOWN_SERVER = 0x7f;//关闭服务器
	public static final byte NOTIFY_SRV_MSG = 0x7;//服务器系统消息
	
	public static final byte CMD_USER_LOGIN = 0x21; //登陆操作
	public static final byte CMD_HEART_BEAT = 0x23;//心跳操作  35	
	public static final byte NOTIFY_HEART_BEAT = 0x24; //服务器发送心跳
	
	public static final byte CMD_BAI_PUSH = 0x30;//百度推送的参数上传
	public static final byte NOTIFY_BAI_PUSH = 0x31; //推送信息提交成功
	
	
	public static final byte NOTIFY_USER_LOGIN = 0x25; //登陆
	public static final byte NOTIFY_PARAM_NULL = 0x26;//参数异常	
	public static final byte NOTIFY_PRO_ERROR = 0x27;//程序出错
	public static final byte NOTIFY_USER_LOGIN_OUT = 0x28; //用户被踢
	
	
	//与用户登陆相关的Notyfy状态
	public static final int NT_USER_LOGIN_OK = 200;
	public static final int NT_USER_FORCE_QUIT = 203;
		
	//与用户登陆相关的Notyfy状态
	public static final int NT_SRV_ERROR = 400;//通用系统错误信息
	public static final int NT_SRV_LOGIN_ERROR = 401;//登陆失败信息
	public static final int NT_SRV_MSGSEND_ERROR = 402;//信息发送错误
	public static final int NT_SRV_GROUP_MSG_ERROR = 403;//组消息发送错误
	public static final int NT_SRV_TRADESEND_ERROR = 404;//交易会话信息发送错误
	public static final int NT_SRV_EXITIS = 405 ; // 已存在(通用)
	
	public InfoPacket(){
		super.setPacketType(PacketType.info);
	}
	
	public InfoPacket clone(){
		InfoPacket p = null;
		try{
			p =(InfoPacket) super.clone();
		}catch (CloneNotSupportedException e) {
			e.printStackTrace();
		}
		
		return p ;
		
	}
}
